<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<b>普通文本展示</b><br>
<p>hello,${name}</p>
<b>对象展示</b><br>
<p>${stu.name}</p>
<p>${stu.age}</p>
<b>list测试</b><br>

<table>
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td>工资</td>
        <td>年龄</td>
    </tr>
    <#list stus as stu>
        <#if stu.name='小红'>
            <tr style="color:red">
                <td>${stu_index+1}</td>
                <td>${stu.name}</td>
                <td>${stu.money}</td>
                <td>${stu.age}</td>
            </tr>
        <#else >
            <tr>
                <td>${stu_index+1}</td>
                <td>${stu.name}</td>
                <td>${stu.money}</td>
                <td>${stu.age}</td>
            </tr>
        </#if>
    </#list>
</table>
<h5>map测试</h5>
方式1
${maps['stu1'].name}
${maps['stu2'].name}
方式2
${maps.stu1.name}
${maps.stu2.name}
<b>遍历map测试</b><br>
<table>
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td>工资</td>
        <td>年龄</td>
    </tr>
    <#list maps?keys as key>

        <tr>
            <td>${key_index+1}</td>
            <td>${maps[key].name}</td>
            <td>${maps[key].age}</td>
            <td>${maps[key].money}</td>
        </tr>
    </#list>
</table>
<#if aaac??>

</#if>
${abc!"dd"}
${(abc.dd.cc)!"fda"}
</body>
</html>
